model = struct2treemodel(S, model, parent)
Fast way to convert structure to treemodel for use in treetable
S | any | array of structures |
model | any | parameter that can be passed to jacontrol with style JXTable |
parent | any | initial parent |
model | any | parameter that can be passed to jacontrol with style JXTable model +----data Nx2 cell array of cells +----header 1x2 cell of char-strings +----hierarchy Nx2 array of int32 +----icons empty cell array +----userdata empty cell array leave_data Nx1 cell array This array contains de content of the leaves of the input structure S. EXAMPLE [table h] = jacontrol('style','Table',... 'scrollb',true,... 'ColumnControlVisible',true,... 'SelectionMode',3,... 'showgrid','none'); set(table,'Content',struct2treemodel(S)); |